package GameEngine.Gui;

import processing.core.PFont;
import processing.core.PImage;
import GameEngine.Gui.Event.TouchEvent;
import GameEngine.helper.PAppletBridge;

abstract public class Form {
	private FormData FD;

	private PFont largeFont;
	private PImage hintergrund;
	
	public static final FormConstants FC = new FormConstants();


	public Form(FormData fd) {
		initFonts();
		this.FD = fd;
	}

	public void initFonts() {
		largeFont = PAppletBridge.loadFont("Arial-large.vlw");
		setLargeFont();
	}

	public void setLargeFont() {
		PAppletBridge.textFont(largeFont, 36);
	}

	public void setMediumFont() {
		PAppletBridge.textFont(largeFont, 28);
	}

	public void setSmallFont() {
		PAppletBridge.textFont(largeFont, 20);
	}

	public void draw() {
	}

	// Abstrakte Methoden
	abstract public void handleEvent(TouchEvent e);
}
